﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cesave.Domain.PermisosModule.Entities;
using System.Data.Objects;
using Cesave.Infrastructure.Data.Core;

namespace Cesave.Infrastructure.Data.PermisosModule.Mock
{
	public partial class PermisosModuleFakeContext
	{

		private static List<Area> _areas;

		private void InitiateInnerAreasCollection()
		{
			if (_areas == null)
				_areas = new List<Area>
				{
					new Area
					{
						AreaGuid = new Guid("9020B481-1B65-4999-94E7-36D21FEF2D7B"),
						AreaId = 1,
						JuntaGuid = new Guid("C9760433-39E5-4FE4-A17E-EDE111734C65"),
						JuntaId = 2,
						Letra = "N",
						MostrarEnExpedicion = true,
						Nombre = "NAVOJOA",
						Status = true,
					},
					new Area {
						AreaGuid = new Guid("E2481C45-0F18-4CA3-B4DA-4E57A6654A13"),
						AreaId = 2,
						JuntaGuid = new Guid("C9760433-39E5-4FE4-A17E-EDE111734C65"),
						JuntaId = 2,
						Letra = "H",
						MostrarEnExpedicion = true,
						Nombre = "HUATABAMPO",
						Status = true,
					},
					new Area
					{
						AreaGuid = new Guid("E2481C45-0F18-4CA3-B4DA-4E57A6654A13"),
						AreaId = 3,
						JuntaGuid = new Guid("C9760433-39E5-4FE4-A17E-EDE111734C65"),
						JuntaId = 2,
						Letra = "E",
						MostrarEnExpedicion = true,
						Nombre = "ETCHOJOA",
						Status = true,
					},
				};
		}

		private IObjectSet<Area> CreateAreasObjectSet()
		{
			return _areas.ToInMemoryObjectSet();
		}

		private void InitiateFakeAreas()
		{
			AreasGet = () => CreateAreasObjectSet();
			CreateObjectSet<Area>(() => CreateAreasObjectSet());
		}
	}
}